package JavaSE.Class11.Demo;

public class Fish extends Animal implements ISwimming{
    @Override
    public void eat() {
        System.out.println(name+"fish eat");
    }

    public Fish(String name, int age) {
        super(name, age);
    }

    @Override
    public void swim() {
        System.out.println(name+"fish swim");
    }
}
